package com.ilongsay.service.impl;

import com.ilongsay.dao.BillDao2;
import com.ilongsay.entity.FaPiao;
import com.ilongsay.service.IBillService2;
import com.ilongsay.zhujie.DataSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author ilongsay
 * @Email ilongsay@163.com
 * @Copyright 版本所有，侵权必究！
 * @Datetime 2018-11-13 14:23
 * @Describution
 */

@Service("billService2")
public class BillService2Impl implements IBillService2{

    @Autowired
    private BillDao2 billDao2;

    @Override
    public List<FaPiao> findAllBill() {
        return billDao2.findBill();
    }

    @Override
    public void insertBill(FaPiao faPiao) {
        billDao2.insertBill1(faPiao);
    }
}
